#include<iostream>
using namespace std;
class Document
{
	protected:
		char name[20];
	public:
		void setName()
		{
			cout<<"Please enter the name of the document."<<endl;
			cin>>name;
		}
		void display()
		{
			cout<<"the name of the document is:\n"<<this->name<<endl;
		}
};
class Book:public Document
{
	private:
		int pageCount;
	public:
		void setName()
		{
			cout<<"Please enter the name of the book."<<endl;
			cin>>name;
		}
		void display()
		{
			cout<<"the name of the book is:\n"<<this->name<<endl;
		}
};kd
int main()
{
	Book a;
	a.setName();
	a.display();
	return 0;
}
